/*
 * @Description: 岗位管理-api
 * @Author: xinqiao lxq1990.0716@qq.com
 * @Date: 2024-03-08
 * @LastEditors: xinqiao lxq1990.0716@qq.com
 * @LastEditTime: 2024-03-15
 */
import request from '/@/api/request'

/** 岗位列表 */
export const requestPositionList = (data: PositionListTypes.IRequest) => {
  return request.post<IPaginationResponse<PositionListTypes.IResponse[]>>('/business/company/position/positionList/V1', data)
}

/** 添加岗位 */
export const requestSavePosition = (data: SavePositionTypes.IRequest) => {
  return request.post<IBaseResponse<SavePositionTypes.IResponse>>('/business/company/position/savePosition/V1', data)
}

/** 修改岗位 */
export const requestUpdatePosition = (data: UpdatePositionTypes.IRequest) => {
  return request.post<IBaseResponse<UpdatePositionTypes.IResponse>>('/business/company/position/updatePosition/V1', data)
}

/** 删除岗位 */
export const requestDeletePosition = (data: DeletePositionTypes.IRequest) => {
  return request.post<IBaseResponse<DeletePositionTypes.IResponse>>('/business/company/position/deletePosition/V1', data)
}

/** 用户关联岗位 */
export const requestSavePositionUser = (data: SavePositionUserTypes.IRequest) => {
  return request.post<IPaginationResponse<SavePositionUserTypes.IResponse[]>>('/business/company/position/savePositionUser/V1', data)
}
